package com.youfang.sixthmedia.message;

import java.util.List;

import com.gzit.utils.MD5;
import com.youfang.sixthmedia.net.Pair;
import com.youfang.sixthmedia.net.Request;

public class LoginRequest extends Request {

	private String username;
	private String password;
	private String clientos = "android";

	@Override
	public List<Pair> getParams() {
		return Pair.p("controller", "login").p("action", "login")
				.p("username", username).p("password", MD5.toMD5(password))
				.p("clientos", clientos).get();
	}

	@Override
	public void genMetaData() {

	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getClientos() {
		return clientos;
	}

	public void setClientos(String clientos) {
		this.clientos = clientos;
	}

}
